package com.mmy.service.impl.restaurant;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mmy.dao.restaurant.VRestaurantPlanRepository;
import com.mmy.domain.restaurant.VRestaurantPlan;
import com.mmy.service.restaurant.VRestaurantPlanService;

@Service
public class VRestaurantPlanServiceImpl implements VRestaurantPlanService {

	@Autowired
	VRestaurantPlanRepository vRestaurantPlanRepository;

	/**
	 * 查找全部
	 * 
	 * @param
	 * @return
	 */
	public List<VRestaurantPlan> findAll() {
		// TODO Auto-generated method stub
		return vRestaurantPlanRepository.findAll();
	}

	public VRestaurantPlan findByPlanID(int iPlanID) {
		// TODO Auto-generated method stub
		return vRestaurantPlanRepository.findByPlanID(iPlanID);
	}

	public List<VRestaurantPlan> findByRestaurantID(int iRestaurantID) {
		// TODO Auto-generated method stub
		return vRestaurantPlanRepository.findByRestaurantID(iRestaurantID);
	}

	/**
		 * 新建id
		 * 
		 * @param
		 * @return
		 */
	/*
	 * public void save(int planID) { // TODO Auto-generated method stub
	 * tCarPlanRepository.save(planID); }
	 * 
	 *//**
		 * 新增
		 * 
		 * @param
		 * @return
		 */
	/*
	 * public void save(TCarPlan tCarPlan) { // TODO Auto-generated method stub
	 * tCarPlanRepository.save(tCarPlan); }
	 * 
	 *//**
		 * 删除
		 * 
		 * @param
		 * @return
		 */
	/*
	 * public void delCarPlan(List<Integer> lstPlanID) { // TODO Auto-generated
	 * method stub tCarPlanRepository.delCarPlan(lstPlanID); }
	 * 
	 *//**
		 * 通过id查找
		 * 
		 * @param
		 * @return
		 */
	/*
	 * public TCarPlan findByPlanID(int iPlanID) { // TODO Auto-generated method
	 * stub return tCarPlanRepository.findByPlanID(iPlanID); }
	 * 
	 *//**
		 * 通过name查找
		 * 
		 * @param
		 * @return
		 */
	/*
	 * public List<TCarPlan> findByCarID(String strCarID) { // TODO Auto-generated
	 * method stub return tCarPlanRepository.findByCarID(strCarID); }
	 * 
	 *//**
		 * 通过CarID查找
		 * 
		 * @param
		 * @return
		 */
	/*
	 * public List<VCarPlan> findByCarID(int iCarID) { // TODO Auto-generated method
	 * stub return vCarPlanRepository.findByCarID(iCarID); }
	 * 
	 *//**
		 * 通过id查找
		 * 
		 * @param
		 * @return
		 *//*
			 * public VCarPlan findByID(int iPlanID) { // TODO Auto-generated method stub
			 * return vCarPlanRepository.findByID(iPlanID); }
			 */

}
